package android.dto;
import java.util.HashMap;
import java.util.List;


public class TouchEvent extends DataTransferObject{

	private static final long serialVersionUID = 1L;

	private HashMap<Integer, ScreenCoordinates> current;
	private List<HashMap<Integer, ScreenCoordinates>> historical;
	private int action;
	
	public static final int ACTION_DOWN = 0;
	public static final int ACTION_UP = 1;
	public static final int ACTION_MOVE = 2;
	public static final int ACTION_CANCEL = 3;
	public static final int ACTION_OUTSIDE = 4;
	public static final int ACTION_POINTER_DOWN = 5;
	public static final int ACTION_POINTER_UP = 6;

	public int getPointerCount() {
		return current.size();
	}
	
	public int getHistorySize() {
		return historical.size();
	}
	
	public ScreenCoordinates getCurrent(int pointer) {
		return current.get(pointer);
	}
	
	public ScreenCoordinates getHistorical(int pointer, int pos) {
		return historical.get(pos).get(pointer);
	}

	public void setAction(int action) {
		this.action = action;
	}

	public int getAction() {
		return action;
	}
	
}
